<template>
  <el-container>
    <el-aside width="200px">
      <el-menu :default-active="$route.path" class="el-menu-vertical-demo" router>

        <el-menu-item index="/login">
          <i class="el-icon-menu"></i>
          <span slot="title">login</span>
        </el-menu-item>
        <el-menu-item index="/">
          <i class="el-icon-menu"></i>
          <span slot="title">home</span>
        </el-menu-item>

      </el-menu>
    </el-aside>
    <el-main>
      <router-view></router-view>
      <router-view name="left" class="footer"></router-view>
    </el-main>
  </el-container>
</template>

<script>
export default {
  data () {
    return {}
  }
}
</script>

<style lang="less" scoped>
.el-container{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
}
.el-aside,.el-menu{
  height: 100%;
}
.footer{
  position: fixed;
  bottom: 0;
  left: 20rem;
  width: 80%;
  // right: 0;
  // margin: 0 auto;
}
</style>
